<template>
	<view style="height:100vh"  :style="[AppSkinVar]">
		<user-card index="userPage" @endRefresh="stopDownRefresh"></user-card>
	</view>
</template>

<script setup lang="ts">
	import userCard from './tabbar/child/user.vue'
	import { onReady, onShow,onReachBottom,onPullDownRefresh } from '@dcloudio/uni-app';
	import customTabbar from './tabbar/utils/customTabbar'
	import { useI18n } from "vue-i18n";
	
	
	const {t} = useI18n()
	const stopDownRefresh = () => {
		// 停止下拉动作
		uni.stopPullDownRefresh()
	}
	onReady(() => {
		uni.setNavigationBarTitle({
			title: t('tabbar.个人中心')
		})
	})
	
	onShow(() => {
		customTabbar.onShow('userPage')
	})
	onReachBottom(() => {
		customTabbar.onReachBottom('userPage');
	});
	onPullDownRefresh(() => {
		customTabbar.onPullDownRefresh('userPage');
	});
	
	
</script>

<style>
</style>